package cn.jason.org.service;

import cn.jason.basic.util.PageList;
import cn.jason.org.domain.Department;
import cn.jason.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    //保存
    void save(Department department);

    //修改
    void update(Department department);

    //删除
    void removeById(Long id);

    //查询所有
    List<Department> queryAll();

    //查询
    Department queryById(Long id);

    //分页 +高级
    PageList<Department> queryPage(DepartmentQuery query);

    //批量删除
    void batchRemove(List<Long> ids);

    //查询无限极部门树
    List<Department> queryTree();
}
